package com.website.system.model;

import java.util.Date;

public class Visitor {
    private Integer id;
    private Integer browseCount;
    private Integer downloadCount;
    private Integer articleCount;
    private Date date;

    // 下面这些字段数据库不存在，用于处理逻其他辑问题
    private String articleType;
    private String month;
    private String day;
    private String weekday;
    private String sum;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBrowseCount() {
        return browseCount;
    }

    public void setBrowseCount(Integer browseCount) {
        this.browseCount = browseCount;
    }

    public Integer getDownloadCount() {
        return downloadCount;
    }

    public void setDownloadCount(Integer downloadCount) {
        this.downloadCount = downloadCount;
    }

    public Integer getArticleCount() {
        return articleCount;
    }

    public void setArticleCount(Integer articleCount) {
        this.articleCount = articleCount;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getWeekday() {
        return weekday;
    }

    public void setWeekday(String weekday) {
        this.weekday = weekday;
    }

    public String getSum() {
        return sum;
    }

    public void setSum(String sum) {
        this.sum = sum;
    }

    public String getArticleType() {
        return articleType;
    }

    public void setArticleType(String articleType) {
        this.articleType = articleType;
    }

    public Visitor() {}

    public Visitor(Integer browseCount, Integer downloadCount, Date date) {
        this.browseCount = browseCount;
        this.downloadCount = downloadCount;
        this.date = date;
    }

    @Override
    public String toString() {
        return "Visitor{" +
                "id=" + id +
                ", browseCount=" + browseCount +
                ", downloadCount=" + downloadCount +
                ", articleCount=" + articleCount +
                ", date=" + date +
                ", articleType=" + articleType +
                ", month='" + month + '\'' +
                ", day='" + day + '\'' +
                ", weekday='" + weekday + '\'' +
                ", sum='" + sum + '\'' +
                '}';
    }
}
